package think.in.java.concurrency.practise.exec6;

/**
 * Created by IntelliJ IDEA.
 * User: Richard
 * Date: 5/19/11
 * Time: 8:21 PM
 * To change this template use File | Settings | File Templates.
 */
public abstract class IntGenerate {
    private volatile boolean canceled= false;
    public abstract int next();
    public void  cancel(){canceled=true;}
    public boolean getCancel(){return canceled;}

}
